﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/template.css")" type="text/css" rel="Stylesheet" />
    <link href="@Url.Content("~/Content/controls.css")" type="text/css" rel="stylesheet" />
    <link href="@Url.Content("~/Content/leftMenu.css")" type="text/css" rel="stylesheet" />
    <link href="@Url.Content("~/Content/wucJModal.css")" type="text/css" rel="stylesheet" />
    <link href="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom/css/overcast/jquery-ui-1.10.3.custom.css")" type="text/css"  rel="stylesheet"/>
    <!--
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    -->

     <!--[if !IE 7]>
	    <style type="text/css">
	        /* Sticky Footer */
		    .mainContainer {display:table;height:100%}
	    </style>
    <![endif]-->
    <script src="@Url.Content("~/Scripts/jquery-1.6.2.js")" type="text/javascript"></script>    
    <script src="@Url.Content("~/Scripts/menuLeft.js")" type="text/javascript"></script>   
	<script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js" )" type="text/javascript" ></script>
	<script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js")" type="text/javascript" ></script>
       
    <script type="text/javascript">
    ;
    function Login() {
            var usr = $('#LAP_txtUsuario').val();
            var pass = $('#LAP_txtPassword').val();
            var url = "/Home/Index/";

            $.ajax({
                url: '@Url.Action("Login","Usuarios")',
                type: "POST",
                data: { 'user': usr, 'password': pass }
            }).done(
             function (resultset) {
                 /* alert(resultset.Success); */
                 if (resultset.Success == "True") {
                     $(location).attr('href', url);
                 } 
             }).fail(function () { aler('Error'); });
        }

</script>
</head>

<body>
    <div class="mainContainer">
        <div class="headerContainer">
            <div class="logoTernium"></div>
            <div class="logoNova"></div>
            <div class="clearBoth"></div>
        </div>

        <div class="mainContent">
            <div class="headerContent">                
                <h2 class="icon_user floatLeft">                    
                    Bienvenido <a href="#">[Usuario]</a> <div id="Hora" />
                </h2>
            </div>
            <div class="leftContent">
                <div class="leftMenu">
                @RenderSection("leftMenu", false)
                </div>
            </div>
            <div class="centerFullContent">                
                @RenderBody()               
            </div>
            <div class="footerContent clearBoth"></div>
         </div>
     </div>
     <div class="footerContainer">
        <center>
        <p>
            Sistema Administración Integral - [SAIN]
        </p>
        </center>        
    </div>
</body>
</html>
